import Layout from '@/pages/public/layout' // 公共部分

const topic = [{
  path: '/content/topic',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/content/topic/index.vue'),
    meta: {
      title: '资讯-列表',
      permission: 'content.topic.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/content/topic/create.vue'),
    meta: {
      title: '资讯-新建',
      permission: 'content.topic.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/content/topic/edit.vue'),
    meta: {
      title: '资讯-编辑',
      permission: 'content.topic.edit'
    }
  }, {
    path: 'comment/:id/list',
    component: () => import('@/pages/content/topic/comment/index.vue'),
    meta: {
      title: '资讯-评论',
      permission: 'content.topic.comment'
    }
  }]
}]

export default topic
